package com.mycinema.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mycinema.entity.Movie;

public interface MovieService {

	List<Movie> getAll();
	
	Movie getById(int id);
	
	List<Movie> getMoviesTitleCid(int cid,String title);
	
	void updateMovie(Movie movie);
	
	//分页查询
	List<Movie> getMoviesPage(int cid,String title,int startIndex,int pageSize);
		
	//计算总记录数
	int getRows(int cid,String title);
}
